{template "header.html"}

<div class="note note-danger">
    <p>{dr_lang('除了本站已经定义的域名之外，你还可以添加其他域名')}</p>
</div>

<form action="" class="form-horizontal" method="post" name="myform" id="myform">
    {dr_form_hidden()}
    <input type="hidden" id="dr_color" name="data[color]" value="{$admin.color}">
    <div class="row myfbody">
        <div class="col-md-12">

            <div class="portlet light bordered">
                <div class="portlet-title">
                    <div class="caption">
                        <span class="caption-subject font-green">{dr_lang('域名白名单')}</span>
                    </div>
                </div>
                <div class="portlet-body form">

                    <div class="form-body">

                        <div class="form-group ">
                            <label class="col-md-2 control-label">系统域名</label>
                            <div class="col-md-9">
                                <textarea readonly class="form-control" style="height:220px" rows="3">{implode(PHP_EOL, $sys)}</textarea>

                            </div>
                        </div>

                        <div class="form-group ">
                            <label class="col-md-2 control-label">外部域名</label>
                            <div class="col-md-9">
                                <textarea name="domain" class="form-control" style="height:220px" rows="3">{implode(PHP_EOL, $domain)}</textarea>

                                <span class="help-block"> 换行分隔多条数据 </span>
                            </div>
                        </div>

                    </div>
                </div>
            </div>


        </div>

    </div>

    <div class="portlet-body form myfooter">
        <div class="form-actions text-center">
            <button type="button" onclick="dr_ajax_submit('{dr_now_url()}', 'myform', '2000')" class="btn green"> <i class="fa fa-save"></i> {dr_lang('保存内容')}</button>
        </div>
    </div>
</form>

{template "footer.html"}